package com.pzhu.gmall.manage.controller;

import java.util.List;

import com.pzhu.gmall.bean.PmsBaseSaleAttr;
import com.pzhu.gmall.service.BaseSaleAttributeService;
import com.pzhu.gmall.service.SaleAttributeService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 刘鹏 liupeng
 * @date 2019/10/31
 **/
@CrossOrigin
@RestController
@RequestMapping("/baseSaleAttribute")
public class BaseSaleAttributeController {
    @Reference
    private BaseSaleAttributeService baseSaleAttributeService;

    @GetMapping
    public List<PmsBaseSaleAttr> SaleAttrList() {
        return baseSaleAttributeService.getPmsBaseSaleAttrList();
    }
}
